---
apiVersion: deckhouse.io/v1alpha1
kind: KeepalivedInstance
metadata:
  name: master-gateway
spec:
  nodeSelector:
    node-role.kubernetes.io/control-plane: ""
  tolerations:
  - operator: Exists
  vrrpInstances:
  - id: 1
    interface:
      detectionStrategy: NetworkAddress
      networkAddress: "172.16.25.0/24"
    virtualIPAddresses:
    - address: "172.16.25.1/24"
    - address: "10.220.203.240/24"
      interface:
        detectionStrategy: DefaultRoute
---
apiVersion: deckhouse.io/v1
kind: VsphereInstanceClass
metadata:
  name: system
spec:
  numCPUs: 4
  memory: 8192
  rootDiskSize: 20
  mainNetwork: msk3-k8s-1203
  additionalNetworks:
    - DEVOPS_36
  datastore: 3par_4_Lun105
---
apiVersion: deckhouse.io/v1
kind: NodeGroup
metadata:
  name: system
spec:
  nodeType: CloudEphemeral
  cloudInstances:
    zones:
    - X2-A
    minPerZone: 1
    maxPerZone: 1
    classReference:
      kind: VsphereInstanceClass
      name: system
  nodeTemplate:
    labels:
      node-role.deckhouse.io/system: ""
    taints:
    - effect: NoExecute
      key: dedicated.deckhouse.io
      value: system
  chaos:
    mode: Disabled
---
apiVersion: deckhouse.io/v1
kind: IngressNginxController
metadata:
  name: main
spec:
  ingressClass: nginx
  inlet: HostPort
  hostPort:
    httpPort: 80
    httpsPort: 443
  nodeSelector:
    node-role.kubernetes.io/master: ''
  tolerations:
    - effect: NoSchedule
      operator: Exists
